<?php
 require_once('lib/Smarty.class.php');
 $smarty = new Smarty();
 $smarty->template_dir = 'views';
 $smarty->compile_dir = 'tmp';
 $smarty->cache_dir = 'cache';
 

 if (!isset($_GET['page'])){
  $strona = 'home';
 } else if($_GET['page']=='home') {
 	$strona='home';
 } else if($_GET['page']=='uslugi') {
 	$strona='uslugi';
 } else if($_GET['page']=='o_nas') {
 	$strona='o_nas';
 } else if($_GET['page']=='partnerzy') {
 	$strona='partnerzy';
 } else if($_GET['page']=='godz') {
 	$strona='godz_przyj';
 } else if($_GET['page']=='contact') {
 	$strona='contact';
}else{
  $strona = $_GET['page'];
 }

 
 $images = array('1.bmp','2.bmp','3.bmp','4.bmp');
 
 $smarty->assign('tytul','To jest kurs Smarty');
 $smarty->assign('strona',$strona);
 $smarty->assign('images',$images);
 $smarty->assign('zmienna','asdasdsa');
 
 $smarty->display('index.tpl');
?>